﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using ElectronicSelling.BusinessLogic;

namespace ElectronicSelling.UserControl
{
    public partial class MostView : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                GetMostViewed();
            }
        }

        protected void GetMostViewed()
        {
            DataTable dt = new DataTable();
            dt = HomeProductLogic.GetMostViewed();
            rptMostViewed.DataSource = dt;
            rptMostViewed.DataBind();
        }
    }
}